package com.ihmp.service;

import java.util.LinkedHashMap;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ihmp.dao.ICurrencyDAO;
import com.ihmp.model.TCurrency;

@Service
@Transactional
public class CCurrencyService implements ICurrencyService {
	
	@Autowired
	private ICurrencyDAO dao;

	public void saveOrUpdate(TCurrency currency) {
		dao.saveOrUpdate(currency);
	}

	public void delete(TCurrency currency) {
		dao.delete(currency);
	}

	public TCurrency get(Integer id) {
		return dao.get(id);
	}

	public List<TCurrency> list() {
		return dao.list();
	}

	public List<TCurrency> list(int page, int recordPerPage) {
		return dao.list(page, recordPerPage);
	}
	
	public LinkedHashMap<Integer, String> getComboData(){
		return dao.getComboData();
	}
}
